package main

import "fmt"

func main() {
	a := [3]int{1, 2, 3}
	//将数组a的值复制给range
	for i, v := range a {
		if i == 0 {
			a[1], a[2] = 200, 300
			fmt.Println(a)
		}
		a[i] = v + 100

	}
	fmt.Println(a)
}
